/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wanhai.itm.wditm101.vo;

import com.wanhai.vo.itm.ITM4002VO;

/**
 *
 * @author m2434
 */
public class Wditm101_ITM4002VO extends ITM4002VO {
    private String year;
    private String holidayStart;
    private String holidayEnd;

    
    public void assemblerHoliday(){
        if(getHolidayStart() != null && getHolidayEnd() != null){
            super.setHOLIDAY("#between '"+getHolidayStart()+"' and '"+getHolidayEnd()+"'");
        }else if(getHolidayStart() != null){
            super.setHOLIDAY("#between '"+getHolidayStart()+"' and '99991231'");
        }else if(getHolidayEnd() != null){
            super.setHOLIDAY("#between '19000101' and '"+getHolidayEnd()+"'");
        }else{
            super.setHOLIDAY(null);
        }
    }
    
    
    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getHolidayEnd() {
        return holidayEnd;
    }

    public void setHolidayEnd(String holidayEnd) {
        this.holidayEnd = holidayEnd;
        assemblerHoliday();
    }

    public String getHolidayStart() {
        return holidayStart;
    }

    public void setHolidayStart(String holidayStart) {
        this.holidayStart = holidayStart;
        assemblerHoliday();
    }
    
}
